package com.alex.monitor.core.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 耗时方法监控
 *
 * @author Alex.Liu
 * @date: 2025-02-16 14:25
 * @since 1.0.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface TimeMethodMonitor {

    /**
     * 方法执行超过多少毫秒 触发
     *
     * @return 方法最大耗时
     */
    long value() default 1500L;

}